package com.summer.order.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.summer.user.model.User;

@Entity
@Table(name = "order_summary")
public class OrderSummary implements Serializable{

	
	private static final long serialVersionUID = -4440944772194871126L;
	private String id;
	private Date date;
	private Integer breakfast;
	private Integer lunch;
	private Cookbook cookbook;


	@Id
	@Column(name = "id" , unique = true , nullable = false)
	public String getId() {
		return id;
	}
	
	@ManyToOne
	@JoinColumn(name = "cookbook_id")
	public Cookbook getCookbook() {
		return this.cookbook;
	}
	
	
	@Column(name = "d_date")
	public Date getDate() {
		return date;
	}

	@Column(name = "breakfast")
	public Integer getBreakfast() {
		return breakfast;
	}

	@Column(name = "lunch")
	public Integer getLunch() {
		return lunch;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setCookbook(Cookbook cookbook) {
		this.cookbook = cookbook;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setBreakfast(Integer breakfast) {
		this.breakfast = breakfast;
	}

	public void setLunch(Integer lunch) {
		this.lunch = lunch;
	}
	
	
	
	
	
}
